package cn.gailvlun.gll.net.apartment.template;

import java.util.List;

import cn.gailvlun.gll.bean.PlaceHolder;
import cn.gailvlun.gll.net.apartment.room.Task;
import cn.gailvlun.gll.net.token.Authorization;
import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.HTTP;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Query;



public interface TemplateService {
    @Authorization
    @GET("room/task/template/")
    Observable<List<Task>> getTemplateList();

    @Authorization
    @DELETE("room/task/template/")
    Observable<PlaceHolder> deleteTemplate(@Query("id") int id);

    @Authorization
    @POST("room/task/template/")
    Observable<Task> addTemplate(@Body AddTemplateReq addTemplateReq);

    @Authorization
    @PUT("room/task/template/")
    Observable<Task> modifyTemplate(@Body AddTemplateReq addTemplateReq);
}
